from rest_framework import serializers
from goods.models import ProductCategoryModel, ProductBrandModel, ProductModel


class ProductCategorySerializer(serializers.ModelSerializer):
    class Meta:
        model = ProductCategoryModel
        fields = '__all__'  # 或者指定你需要返回的字段


class ProductBrandSerializer(serializers.ModelSerializer):
    class Meta:
        model = ProductBrandModel
        fields = '__all__'  # 或者指定你需要返回的字段


class ProductSerializer(serializers.ModelSerializer):
    class Meta:
        model = ProductModel
        fields = '__all__'  # 或者指定你需要返回的字段
